/**
 * ISysResourceDao.java
 * Created at 2017-1-5
 * Created by xubin
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.system.dao;

import com.broadtext.common.exp.DaoException;
import com.broadtext.rms.system.model.SysResource;

import java.util.List;
import java.util.Map;


/**
 * <p>
 * ClassName: ISysResourceDao
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Author: xubin
 * </p>
 * <p>
 * Date: 2017-1-5
 * </p>
 */
public interface ISysResourceDao {
    /**
     * 
     * <p>
     * Description: 获取所有资源
     * </p>
     * 
     * @return List<SysResource>
     * @throws DaoException daoException
     */
    public List<SysResource> selectAllResource() throws DaoException;
    
    /**
     * 
     * <p>
     * Description: 获取所有资源
     * </p>
     * 
     * @return List<SysResource>
     * @throws DaoException daoException
     */
    public List<SysResource> selectAdminResource() throws DaoException;
    
    /**
     * 
     * <p>
     * Description: 根据用户名获取用户所有资源
     * </p>
     * 
     * @param loginName 用户名
     * @return List<SysResource>
     * @throws DaoException daoException
     */
    public List<SysResource> selectResourceByLoginName(String loginName) throws DaoException;
    
    /**
     * 
     * <p>
     * Description: 根据用户名获取用户模块资源
     * </p>
     * 
     * @param userId 用户id
     * @return List<SysResource>
     * @throws DaoException daoException
     */
    public List<SysResource> selectResourceByUserId(String userId) throws DaoException;
    
    /**
     * 
     * <p>
     * Description: 根据资源parentid查找资源
     * </p>
     * 
     * @param parentId 参数
     * @return List<SysResource>
     * @throws DaoException daoException
     */
    public List<SysResource> selectResourceByParentId(String parentId) throws DaoException;
    
    
    /**
     * 
     * <p>
     * Description: 根据资源parentid查找资源
     * </p>
     * 
     * @param map 参数
     * @return List<SysResource>
     * @throws DaoException daoException
     */
    public List<SysResource> selectResourceByMap(Map<String, Object> map) throws DaoException;


    List<SysResource> getMsgReceiveManageResource(String id) throws DaoException;

}
